package com.jeff

import grails.converters.JSON

class AirlineService {

    static transactional = true

    def findByCodeFromService(String code) {
		Airline airline = Airline.findByCode(code)
//		Airline airline = new Airline(name:"Non-Exist",code:"NE")
		airline //cannot render to JSON in service layer, "render" closure only applicable to controller layer
    }
	
	def asSecCalledServiceMethod() {
		println "Airline service called as second service method"
	}
}
